import request from '@/config/utils/request'
import { pageLoadingParams } from '@/basa/utils/public'

// 全部页签查询
export function getAllPcconcList(data) {
  return request({
    url: '/apis/smp/approval/list/pcconc/trans/all',
    method: 'POST',
    data
  })
}

// 待审页签查询
export function getPendingPcconcList(data) {
  return request({
    url: '/apis/smp/approval/list/pcconc/trans/pending',
    method: 'POST',
    data
  })
}

// 已审页签查询
export function getApprovedPcconcList(data) {
  return request({
    url: '/apis/smp/approval/list/pcconc/trans/approved',
    method: 'POST',
    data
  })
}

// 查询
export function getList(data) {
  return request({
    url: `/apis/smp/approval/list/pcconc/equip/${data.type}`,
    method: 'POST',
    data: { ...data, ...pageLoadingParams }
  })
}
